<template>
  <div class="container_demo">
    <!-- 顶部 -->
    <div class="header">
      <div class="title">demo</div>
    </div>
    <!-- /顶部 -->
    <!-- 内容 -->
    <div class="content">
      <!-- 第一行 -->
      <div class="content_one">
        <!-- 左侧 -->
        <div class="content_one_left">
          <div class="title">标题1</div>
          <div>
            <left-1></left-1>
          </div>
        </div>
        <!-- / 左侧 -->
        <!-- 右侧 -->
        <div class="content_one_right">
          <div>
            <right-1></right-1>
          </div>
          <div>
            <span> 评估天数：30 </span>
            <span> 有效天数：26 </span>
          </div>
        </div>
        <!-- / 右侧 -->
      </div>
      <!-- /第一行 -->
      <!-- 第二行 -->
      <div class="content_two">
        <!-- 左侧 -->
        <div class="content_two_left">
          <div class="title">标题1</div>
          <div>
            <left-2></left-2>
          </div>
        </div>
        <!-- / 左侧 -->
        <!-- 右侧 -->
        <div class="content_two_right">
          <div>
            <right-2></right-2>
          </div>
          <div>
            <span> 评估天数：30 </span>
            <span> 有效天数：26 </span>
          </div>
        </div>
        <!-- / 右侧 -->
      </div>
      <!-- /第二行 -->
      <!-- 第三行 -->
      <div class="content_three">
        <!-- 左侧 -->
        <div class="content_three_left">
          <div class="title">标题1</div>
          <div>
            <left-3></left-3>
          </div>
        </div>
        <!-- / 左侧 -->
        <!-- 右侧 -->
        <div class="content_three_right">
          <div>
            <right-3></right-3>
          </div>
          <div>
            <span> 评估天数：30</span>
            <span> 有效天数：19 </span>
          </div>
        </div>
        <!-- / 右侧 -->
      </div>
      <!-- /第三行 -->
    </div>
    <!-- /内容 -->
  </div>
</template>
<script>
import Left1 from "../components/Left1.vue";
import Left2 from "../components/Left2.vue";
import Left3 from "../components/Left3.vue";
import Right1 from "../components/Right1.vue";
import Right2 from "../components/Right2.vue";
import Right3 from "../components/Right3.vue";
export default {
  components: {
    Left1,
    Left2,
    Left3,
    Right1,
    Right2,
    Right3,
  },
  setup() {},
};
</script>

<style lang="less" scoped>
.container_demo {
  div {
    box-sizing: border-box;
  }
  .header {
    height: 200px;
    .title {
      width: 380px;
      margin: 0 auto;
      text-align: center;
      font-size: 28px;
    }
  }
  .content {
    position: absolute;
    top: 60px;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    .content_one {
      margin: 0.5em 0;
      border: 1px solid #ededed;
      flex: 1;
      display: flex;
      flex-direction: row;
      .content_one_left {
        // background-color: aqua;
        flex: 3;
        display: flex;
        flex-direction: column;
        .title {
          flex: 1;
          padding: 5px;
          width: 100px;
          // background-color: chocolate;
          color: #fff;
          font-size: 24px;
          border-top-right-radius: 50px;
          border-bottom-right-radius: 50px;
        }
        & > div {
          flex: 5;
        }
      }
      .content_one_right {
        flex: 1;
        display: flex;
        flex-direction: column;

        & > div:nth-child(1) {
          flex: 8;
        }
        & > div:nth-child(2) {
          flex: 1;
          span {
            margin-left: 3em;
          }
        }
      }
    }
    .content_two {
      margin: 0.5em 0;
      border: 1px solid #ededed;
      flex: 1;
      display: flex;
      flex-direction: row;
      .content_two_left {
        // background-color: rgb(7, 17, 17);
        flex: 3;
        display: flex;
        flex-direction: column;
        .title {
          flex: 1;
          padding: 5px;
          width: 100px;
          // background-color: chocolate;
          color: #fff;
          font-size: 24px;
          border-top-right-radius: 50px;
          border-bottom-right-radius: 50px;
        }
        & > div {
          flex: 4;
        }
      }
      .content_two_right {
        flex: 1;
        display: flex;
        flex-direction: column;

        & > div:nth-child(1) {
          flex: 8;
        }
        & > div:nth-child(2) {
          flex: 1;
          span {
            margin-left: 3em;
          }
        }
      }
    }
    .content_three {
      margin: 0.5em 0;
      border: 1px solid #ededed;
      flex: 1;
      display: flex;
      flex-direction: row;
      .content_three_left {
        // background-color: rgb(123, 224, 224);
        flex: 3;
        display: flex;
        flex-direction: column;
        .title {
          flex: 1;
          padding: 0 5px;
          width: 100px;
          // background-color: chocolate;
          color: #fff;
          font-size: 24px;
          border-top-right-radius: 50px;
          border-bottom-right-radius: 50px;
        }
        & > div {
          flex: 4;
        }
      }
      .content_three_right {
        flex: 1;
        display: flex;
        flex-direction: column;
        & > div:nth-child(1) {
          flex: 8;
        }
        & > div:nth-child(2) {
          flex: 1;
          span {
            margin-left: 3em;
          }
        }
      }
    }
  }
}
</style>